<%= form_for(@groups_thread) do |f| %>
  <% if @groups_thread.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@groups_thread.errors.count, "error") %> prohibited this groups_thread from being saved:</h2>

      <ul>
      <% @groups_thread.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

    <%= f.hidden_field :group_id %>
 
 <div class="field">
    <%= f.label :title,'Naslov' %><br />
    <%= f.text_field :title, :class => :big %>
  </div>
  
   <% if moderator? %>
    <div class="field">
      <%= f.check_box :sticky %><%= f.label :sticky, 'Postavi kao obavijest' %>
    </div>
    <% if false %>
      <div class="field">
        <%= f.check_box :noreply %><%= f.label :noreply %>
      </div>
    <% end %>
  <% end %>
  
  <div class="field">
    <%= f.text_area :content, :class=>'bb-code' %>
  </div>
  
 
  
  <div class="actions">
    <%= f.submit 'Spremi' %>
  </div>
<% end %>
